﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="top.aspx.cs" Inherits="MyWebUI1.top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
    <script language="JavaScript" type="text/javascript">
        function CheckBTN1(theObj, URL, URLmain) {
        
        

    var theDownedButtonObj = null;
    var ns6 = document.getElementById&&!document.all
    if(ns6)
    {
        if (!theDownedButtonObj) {
            theDownedButtonObj = 'button_down';
        }
        if (theObj.className != 'button') {
            theObj.className = 'button';
            theDownedButtonObj.className = 'button_down';
            theDownedButtonObj = theObj;
            window.parent.frames["menu"].location = URL;
            if (URLmain != "") {
                window.parent.frames["sys_main"].location = URLmain;
            }
        }
    }
    else {
        //$("#IDC_DownedBUtton").parent().children("tr").removeClass("button").addClass("button_down");
        //alert($("#IDC_DownedBUtton").parent()[0].innerHTML);
        $("#IDC_DownedBUtton").parent().children("td").each(function() {
            if (this.className == "button") {
                this.className = "button_down";
            }
        });
        if (!theDownedButtonObj) {
            theDownedButtonObj = IDC_DownedBUtton;
        }
        
        if (theObj.className != 'button') {
	            theObj.className='button';
	            //theDownedButtonObj.className='button_down';
	            theDownedButtonObj=theObj;
	            window.parent.frames["menu"].location=URL;
	            if(URLmain!="")
	            {
	                window.parent.frames["sys_main"].location=URLmain;
	            }
            }
    }
}
function logout()
{
    window.parent.location = "Login.aspx";
}
    </script>
   <style type="text/css">
   .navbtn{   width:82px;padding-left:14px;background-repeat:no-repeat;text-align:left;cursor:pointer;}
   </style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td >
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="indexq">
                    <tr>
                        <td style="width: 142px; height: 35px;">logo图片</td>
                        <td style="width: 420px;"></td>
                        <td align="right">
                            <a href="#" onclick="logout();" class="Lion_1">退出</a>&nbsp;┊&nbsp;
                            <a href="../user/index.aspx" target="_blank" class="Lion_1" title="进入会员中心">用户</a>&nbsp;┊&nbsp;
                            <a href="../user/info/ChangePassword.aspx" target="sys_main" class="Lion_1" title="修改密码">密码</a>&nbsp;┊&nbsp;
                            <a href="sys/skinChange.aspx" title="设置系统皮肤" target="sys_main" class="Lion_1">风格</a>&nbsp;┊&nbsp;
                            <a href="../help/HelpList.aspx" target="sys_main" class="Lion_1" title="系统帮助">帮助</a>&nbsp;┊&nbsp;
                            <a href="http://www.hgzp.com" target="sys_main" class="Lion_1" title="官方网站">官方网站</a>&nbsp;&nbsp;
                       </td>
                    </tr>
                </table>
           </td>
        </tr>
        <tr class="topMenuImage" style=" width:100%;">
            <td >
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
             <tr>
            <td class="button_down" onclick="javascript:ChangeMenu(0);" style="cursor:pointer; " width=99>隐藏菜单</td>
            <td>
            
<div id="navi_index">
                    
<table border="0" cellpadding="0" cellspacing="0" class="topMenuImage">
<tr>
<td width="6" height="38"></td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?type=000000','news.aspx');"                      id="Td1" >快捷方式</td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?Type=000000000006','news.aspx');"               >内容管理</td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?Type=212263665712','channel/list.aspx');"       >频道管理</td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?Type=000000000003','Publish/site.aspx');"       >发布管理</td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?Type=000000000005','user/userlist.aspx');"      >会员中心</td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?Type=160066612604','advertisement/list.aspx');" >插件管理</td>
<td class="button_down navbtn" onClick="CheckBTN1(this,'menu.aspx?Type=160066612603','sys/sys_Param.aspx');"      >控制面版</td>


<td></td>
</tr>
</table>


<script language="javascript">
    if (ie4 || ns6)
        document.onclick = hidemenu
    linkset[0] = new Array()
    linkset[0][0] = '<div style="padding:2px 15px 2px 2px;"><a class="menu_ctr" href="menu.aspx?Type=000000000006" target="menu">新闻管理</a></div>'
    linkset[0][1] = '<div style="padding:2px 15px 2px 2px;"> &nbsp; &nbsp; &nbsp;<span class="reshow">以下为自定义频道</span></div>'
    linkset[0][2] = '<div style="padding:2px 15px 2px 2px;"><a class="menu_ctr" href="channel/read.aspx?ChID=1" target="menu">ddd</a></div>'
    linkset[0][3] = '<div style="padding:2px 15px 2px 2px;"><a class="menu_ctr" href="channel/read.aspx?ChID=2" target="menu">商场</a></div>'
</script>

</div>

<div class="menuskin" id="popmenu" onmouseover="clearhidemenu();highlightmenu(event,'on')"
                    style="z-index: 200" onmouseout="highlightmenu(event,'off');dynamichide(event)">
                </div>
                <script type="text/javascript">
                </script>
            </td>
            
            </tr>
            </table>
            </td>
        </tr>
    </table>
    </form>
    
    
<script type="text/javascript">
    var preFrameW = '160,*';
    var FrameHide = 0;
    function ChangeMenu(way) {
        var addwidth = 10;
        var fcol = top.document.all.bodyFrame.cols;
        if (way == 1) addwidth = 10;
        else if (way == -1) addwidth = -10;
        else if (way == 0) {
            if (FrameHide == 0) {
                preFrameW = top.document.all.bodyFrame.cols;
                top.document.all.bodyFrame.cols = '0,*';
                FrameHide = 1;
                document.getElementById("closeopenmenu").innerHTML = "打开左边";
                return;
            } else {
                top.document.all.bodyFrame.cols = preFrameW;
                FrameHide = 0;
                document.getElementById("closeopenmenu").innerHTML = "关闭左边";
                return;
            }
        }
        fcols = fcol.split(',');
        fcols[0] = parseInt(fcols[0]) + addwidth;
        top.document.all.bodyFrame.cols = fcols[0] + ',*';
    }

</script>
</body>
</html>
